package Pro;

public class MyFruit implements Cloneable{
    protected String kind;
    public void display(){
        System.out.println(kind);
    }
    public Object clone() throws CloneNotSupportedException{
        Object obj = null;
        obj = super.clone();  //创建当前对象的一个副本
        return obj;
    }
}
